package com.ruoyi.project.technical.technical.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 技术案例库对象 sys_technical_case_library
 * 
 * @author ruoyi
 * @date 2024-04-29
 */
public class TechnicalCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 零件名称 */
    @Excel(name = "零件名称")
    private String partName;

    /** 故障模式 */
    @Excel(name = "故障模式")
    private Long failureMode;

    /** 故障类型 */
    @Excel(name = "故障类型")
    private Long industryId;

    /** 失效信息 */
    @Excel(name = "失效信息")
    private String failureInfo;

    /** 材料牌号 */
    @Excel(name = "材料牌号")
    private String materialBrand;

    /** 信息来源 */
    @Excel(name = "信息来源")
    private String informationSource;

    /** 故障原因 */
    @Excel(name = "故障原因")
    private String failureReason;

    /** 基本情况 */
    @Excel(name = "基本情况")
    private String basicSituation;

    /** 案例全文 */
    @Excel(name = "案例全文")
    private String caseFullText;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 材料类型 */
    @Excel(name = "材料类型")
    private String materialType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPartName(String partName)
    {
        this.partName = partName;
    }

    public String getPartName()
    {
        return partName;
    }
    public void setFailureMode(Long failureMode)
    {
        this.failureMode = failureMode;
    }

    public Long getFailureMode()
    {
        return failureMode;
    }
    public void setIndustryId(Long industryId)
    {
        this.industryId = industryId;
    }

    public Long getIndustryId()
    {
        return industryId;
    }
    public void setFailureInfo(String failureInfo)
    {
        this.failureInfo = failureInfo;
    }

    public String getFailureInfo()
    {
        return failureInfo;
    }
    public void setMaterialBrand(String materialBrand)
    {
        this.materialBrand = materialBrand;
    }

    public String getMaterialBrand()
    {
        return materialBrand;
    }
    public void setInformationSource(String informationSource)
    {
        this.informationSource = informationSource;
    }

    public String getInformationSource()
    {
        return informationSource;
    }
    public void setFailureReason(String failureReason)
    {
        this.failureReason = failureReason;
    }

    public String getFailureReason()
    {
        return failureReason;
    }
    public void setBasicSituation(String basicSituation)
    {
        this.basicSituation = basicSituation;
    }

    public String getBasicSituation()
    {
        return basicSituation;
    }
    public void setCaseFullText(String caseFullText)
    {
        this.caseFullText = caseFullText;
    }

    public String getCaseFullText()
    {
        return caseFullText;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }
    public void setMaterialType(String materialType)
    {
        this.materialType = materialType;
    }

    public String getMaterialType()
    {
        return materialType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partName", getPartName())
            .append("failureMode", getFailureMode())
            .append("industryId", getIndustryId())
            .append("failureInfo", getFailureInfo())
            .append("materialBrand", getMaterialBrand())
            .append("informationSource", getInformationSource())
            .append("failureReason", getFailureReason())
            .append("basicSituation", getBasicSituation())
            .append("caseFullText", getCaseFullText())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("materialType", getMaterialType())
            .toString();
    }
}
